﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="mobilemain.aspx.cs" Inherits="NWN.GDY.Web.mobilemain" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>您的位置----干瞪眼游戏房</title>
    <link href="/Style/style_mobile.css" rel="stylesheet" type="text/css" />
    <script src="/js/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script src="/js/main.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <center>
        <table id="backTable">
            <tr>
                <td class="backTabletd">
                    <div class="head">
                        干瞪眼</div>
                    <div class="seperdiv">
                    </div>
                    <center>
                        <div class="gameDiv">
                            <div id="titletopleft">
                                游戏场&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;选择房间
                            </div>
                            <div id="gameTopRightUser">
                                <div id="UserHead">
                                </div>
                                <div id="UserInfo" <%=IsLogin?"":"class=\"hide\"" %>>
                                    <div id="UserID" class="UserInfoUpDiv">
                                        <%=CurrentUser %>
                                    </div>
                                    <div id="UserIDBtn1" class="UserIDBtnDiv">
                                        <input type="button" id="btnChangeHead" onclick="changehead()" value="换头像" class="btn1" />
                                    </div>
                                    <div id="UserScore" class="UserInfoDownDiv">
                                        积分:0
                                    </div>
                                    <div id="UserScoreBtn1" class="UserScoreBtnDiv">
                                        <input type="button" id="btnLogOut" onclick="logout()" value="注销" class="btn1" />
                                    </div>
                                    <div class="seperdiv">
                                    </div>
                                    <div id="UserAnnouncement" class="PromoteDiv">
                                        欢迎进入无尼南委宁干瞪眼游戏
                                    </div>
                                </div>
                                <div id="UserLogin" <%=IsLogin?"class=\"hide\"":"" %>>
                                    <div id="UserIDInput"  class="UserInfoUpDiv">
                                        <div class="leftdiv">用户名:</div>
                                        <div class="rightdiv"><input id="iptUserID" class="UserInput" maxlength="20" /></div>
                                    </div>
                                    <div id="UserIDInputBtn1" class="UserIDBtnDiv">
                                        <input type="button" id="btnLogin" onclick="register()" value="注册" class="btn1" />
                                    </div>
                                    <div id="UserPsdInput" class="UserInfoDownDiv">
                                        <div class="leftdiv">密码:</div>
                                        <div class="rightdiv"><input id="iptPsd" class="UserInput" type="password" maxlength="20"/></div>
                                    </div>
                                    <div id="UserPsdInputBtn1" class="UserScoreBtnDiv">
                                        <input type="button" id="btnRegister" onclick="login()" value="登录" class="btn1" />
                                    </div>
                                    <div id="UserPsdInputBtn2" class="UserScoreBtnDiv2">
                                        <input type="button" id="btnGetPsd" onclick="findpsd()" value="找密码" class="btn2" />
                                    </div>
                                    <div class="seperdiv">
                                    </div>
                                    <div id="LoginPromote" class="PromoteDiv">
                                        输入用户名密码后点击注册即可新建账号<br />
                                        用户名和密码只能是中文、英文、数字的组合<br />
                                        用户名需二个字符或以上,密码需六位或以上
                                    </div>
                                    <div id="ErrorPromote" class="PromoteDiv hide alert"></div>
                                </div>
                            </div>
                            <div class="seperdiv">
                            </div>
                            <div id="RoomListTitle">房间列表</div>
                            <div id="UserListTitle">玩家</div>
                            <div class="seperdiv">
                            </div>
                            <div id="RoomList">
                                <div class="leftdiv relativediv">
                                    <div id="MainPsdDiv">
                                        请输入房间密码:<br />
                                        <input type="password" id="RoomPsdInput" /><br />
                                        <input type="button" id="btnEnterRoom" onclick="enter()" value="确认" class="btn2" />
                                        <input type="button" id="btnCancelEnter" onclick="CancelEnter()" value="取消" class="btn2" />
                                    </div>
                                </div>
                                <table border="0" cellpadding="0" cellspacing="0" id="RoomListTable">
                                    <thead>
                                        <tr>
                                            <th>
                                                ID
                                            </th>
                                            <th>
                                                房间名称
                                            </th>
                                            <th>
                                                在玩人数
                                            </th>
                                            <th>
                                                旁观人数
                                            </th>
                                            <th>
                                                房间类型
                                            </th>
                                            <th>
                                                是否加锁
                                            </th>
                                        </tr>
                                    </thead>
                                    <tbody id="RoomListTbody">   
                                    </tbody>
                                </table>
                            </div>
                            <div id="UserList">
                                <table border="0" cellpadding="0" cellspacing="0" id="UserListTable">
                                    <tr>
                                        <td>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                            <div class="seperdiv">
                            </div>
                            <div id="bottomHelp" class="leftdiv bottomMenu" onclick="help()">                                
                            </div>
                            <div id="bottomRefresh" class="leftdiv bottomMenu" onclick="refresh()">
                            </div>
                            <div id="bottomEnter" class="leftdiv bottomMenu" onclick="enter()">
                            </div>
                        </div>
                    </center>
                </td>
            </tr>
        </table>
    </center>
    </form>
</body>
</html>
